<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="RndSetsDataSet" targetNamespace="http://randomrat.org/rndSetsDataSet.xsd" elementFormDefault="qualified" xmlns="http://randomrat.org/rndSetsDataSet.xsd" xmlns:mstns="http://randomrat.org/rndSetsDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
	<xs:element name="SetItems">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="SetID" type="xs:int" />
				<xs:element name="Slot" type="xs:int" />
				<xs:element name="Type" type="xs:string" />
			</xs:sequence>
		</xs:complexType>
		<xs:keyref name="SetSetItem" refer="SetKey1" msdata:AcceptRejectRule="Cascade" msdata:DeleteRule="Cascade" msdata:UpdateRule="Cascade">
			<xs:selector xpath="." />
			<xs:field xpath="mstns:SetID" />
		</xs:keyref>
	</xs:element>
	<xs:element name="Types">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="CriteriaID" type="xs:string" />
				<xs:element name="Type" type="xs:string" />
			</xs:sequence>
		</xs:complexType>
		<xs:keyref name="CriteriaTypes" refer="key21" msdata:DeleteRule="Cascade" msdata:UpdateRule="Cascade">
			<xs:selector xpath="." />
			<xs:field xpath="mstns:CriteriaID" />
		</xs:keyref>
	</xs:element>
	<xs:element name="Patterns">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="CriteriaID" type="xs:string" />
				<xs:element name="Grouping" type="xs:int" />
				<xs:element name="Tolerance" type="xs:int" />
			</xs:sequence>
		</xs:complexType>
		<xs:keyref name="CriteriaPatterns" refer="key1" msdata:DeleteRule="Cascade" msdata:UpdateRule="Cascade">
			<xs:selector xpath="." />
			<xs:field xpath="mstns:CriteriaID" />
		</xs:keyref>
	</xs:element>
	<xs:element name="Sets">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="CriteriaID" type="xs:string" />
				<xs:element name="SetID" type="xs:int" />
			</xs:sequence>
		</xs:complexType>
		<xs:key name="key2">
			<xs:selector xpath="." />
			<xs:field xpath="mstns:CriteriaID" />
		</xs:key>
		<xs:key name="SetKey1">
			<xs:selector xpath="." />
			<xs:field xpath="mstns:SetID" />
		</xs:key>
		<xs:keyref name="CriteriaSets" refer="key1">
			<xs:selector xpath="." />
			<xs:field xpath="mstns:CriteriaID" />
		</xs:keyref>
	</xs:element>
	<xs:element name="Criteria">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="CriteriaID" type="xs:string" />
				<xs:element name="Slots" type="xs:string" />
				<xs:element name="Sets" type="xs:string" />
				<xs:element name="SuccessionTol" type="xs:string" />
				<xs:element name="EveryOtherTol" type="xs:string" />
				<xs:element name="checkedSuccessionTol" type="xs:boolean" />
				<xs:element name="checkedEveryOtherTol" type="xs:boolean" />
				<xs:element name="checkedPatternRules" type="xs:boolean" />
				<xs:element name="checkedForceEqualTypes" type="xs:boolean" />
			</xs:sequence>
		</xs:complexType>
		<xs:key name="key1">
			<xs:selector xpath="." />
			<xs:field xpath="mstns:CriteriaID" />
		</xs:key>
		<xs:key name="key21">
			<xs:selector xpath="." />
			<xs:field xpath="mstns:CriteriaID" />
		</xs:key>
	</xs:element>
</xs:schema>